package net.app.zoneland.sentinel.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author LENOVO
 * @CreateTime 2021/2/1 20:03
 * @Version: 1.0
 */
@Service
public class TestService {

    @SentinelResource(value = "sayHello",fallback = "sayHelloFail")
    public String sayHello(String name){
        return "Hello成功,"+name;
    }

    public String sayHelloFail(String name){
        return "Hello失败,"+name;
    }
}
